<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--精彩评论--%>
<c:forEach items="${hotCommentList}" var="h" varStatus="st">
      <div class="box<c:if test="${st.last}">boxLast</c:if>" data-id="${h.cId}">
                <!--头像-->
                <div class="picBox">
                    <a href="javascript:void(0);">
                        <c:choose>
                            <c:when test="${h.uPic != null and h.uPic != ''}">
                                <img class="head" src="${h.uPic}">
                            </c:when>
                            <c:otherwise>
                                <img class="head" src="../image/user_img.jpg">
                            </c:otherwise>
                        </c:choose>
                    </a>
                </div>
                <!--名字 内容-->
                <div class="contentComment">
                    <!--内容-->
                    <div class="main">
                        <div class="replyBox">
                            <!--名字-->
                            <span class="user">
                                <c:choose>
                                    <c:when test="${h.uName != null and h.uName != ''}">
                                        <a href="javascript:void(0);">${h.uName}</a>
                                    </c:when>
                                    <c:otherwise>
                                        <a href="javascript:void(0);">阁下暂没留下大名</a>
                                    </c:otherwise>
                                </c:choose>
                            </span>
                            <!--内容-->
                            <span class="replyCon">
                                    ${h.msg}
                            </span>
                            <span class="commentReport">举报</span>
                            <div class="commentShareBox">分享</div>
                        </div>
                    </div>
                    <div class="info_">
                        <a class="reply" href="javascript:void(0);" onclick="appendMsgCon(this,'${n.cId}','${n.uId}','${n.uName}');">回复</a>
                        <c:set var="isZan" value="0"></c:set>
                        <c:forEach items="${voteLogs}" var="v">
                            <c:if test="${v.uId == user.uId and v.cId == h.cId and v.status == 0}">
                                <c:set var="isZan" value="1"></c:set>
                            </c:if>
                        </c:forEach>
                        <a class="praise <c:if test="${isZan == '1'}">praised</c:if>" href="javascript:void(0);" onclick="clickZan(this,'${h.cId}','${user.uId}');">${h.likeNum}</a>
                        <c:if test="${h.uId == user.uId}">
                            <span class="delLine"></span>
                            <a class="delete" href="javascript:void(0);" onclick="deleteComment(this,'${h.cId}');">删除</a>
                        </c:if>
                        <p class="time">
                            <fmt:formatDate value="${h.createTime}" pattern="yyyy-MM-dd hh:mm:ss"></fmt:formatDate>
                        </p>
                    </div>
                </div>
            </div>
</c:forEach>
